package com.hc.blogssm.services;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hc.blogssm.dao.UsersMapper;

@Service
public class UsersServicesImpl implements UsersServices{
	
	@Autowired
	private UsersMapper usersMapper;

	@Override
	public Map<String, Object> login(Map<String, Object> map) {
		return usersMapper.login(map);
	}

	@Override
	public int updateById(Map<String, Object> map) {
		
		return usersMapper.updateById(map);
	}

	@Override
	public List<Map<String, Object>> findAllUsers(Map<String, Object> map) {
		
		return usersMapper.findAllUsers(map);
	}

	@Override
	public Map<String, Object> findCount(Map<String, Object> map) {
		return usersMapper.findCount(map);
	}

	@Override
	public int deleteMsgById(Map<String, Object> map) {
		return usersMapper.deleteMsgById(map);
	}

	@Override
	public int addAccount(Map<String, Object> map) {
		return usersMapper.addAccount(map);
	}
}
